package com.zhixiang.wbl.visitor.model.home;

import com.zhixiang.wbl.visitor.Constant.Constant;
import com.zhixiang.wbl.visitor.bean.BaseBean;

/**
 * Created by dongzhixiang on 16/5/18.
 */
public class Spot extends BaseBean
{
    private String createAt;
    private int distance;
    private int id;
    private String imageUrl;
    private double latitude;
    private double longtitude;
    private String name;
    private String updateAt;

    public void setCreateAt(String createAt){
        this.createAt = createAt;
    }
    public String getCreateAt(){
        return this.createAt;
    }
    public void setDistance(int distance){
        this.distance = distance;
    }
    public int getDistance(){
        return this.distance;
    }
    public void setId(String id){
        this.id = Integer.parseInt(id);
    }
    public int getId(){
        return this.id;
    }
    public void setImageUrl(String imageUrl){
        this.imageUrl = imageUrl;
    }
    public String getImageUrl(){
        return Constant.BANNER_URL_PRE + this.imageUrl;
    }
    public void setLatitude(String latitude){
        this.latitude = Double.parseDouble(latitude);
    }
    public double getLatitude(){
        return this.latitude;
    }
    public void setLongtitude(String longtitude){
        this.longtitude = Double.parseDouble(longtitude);
    }
    public double getLongtitude(){
        return this.longtitude;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return this.name;
    }
    public void setUpdateAt(String updateAt){
        this.updateAt = updateAt;
    }
    public String getUpdateAt(){
        return this.updateAt;
    }

    @Override
    public String toString() {
        return "Spot{" +
                "createAt='" + createAt + '\'' +
                ", distance=" + distance +
                ", id=" + id +
                ", imageUrl='" + imageUrl + '\'' +
                ", latitude=" + latitude +
                ", longtitude=" + longtitude +
                ", name='" + name + '\'' +
                ", updateAt='" + updateAt + '\'' +
                '}';
    }
}
